:root {
    --primary-color: #FFE135;
    --secondary-color: #FF69B4;
    --text-color: #333;
    --background-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Smiley Sans", sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.layout {
    display: flex;
    min-height: 100vh;
}

.side-nav {
    width: 240px;
    background-color: var(--primary-color);
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.side-nav .logo {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
}

.side-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
}

.side-nav a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.side-nav a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
}

.hero {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.boring-content {
    padding: 4rem 2rem;
}

.fact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fact-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 1rem;
    color: white;
    text-align: center;
}

/* 游戏区域样式 */
.game-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.game-box {
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

#clickButton {
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* 奇怪链接样式 */
.weird-links {
    padding: 4rem 2rem;
    background: var(--background-color);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.weird-link {
    display: block;
    padding: 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.weird-link:hover {
    transform: translateX(10px);
}

/* 联系我们样式 */
.contact {
    padding: 4rem 2rem;
    background: var(--primary-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.message-board form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.message-board input,
.message-board textarea {
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-family: inherit;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
}

/* 每日无聊事实样式 */
.daily-facts {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    max-width: 600px;
}

.daily-facts h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* 无聊内容样式优化 */
.fact-list {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fact-list ul {
    list-style: none;
    padding: 0;
}

.fact-list li {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.video-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* 消消乐游戏样式优化 */
.match-game-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    background: #eee;
    padding: 10px;
    border-radius: 8px;
    margin: 2rem auto;
    width: min(440px, 90vw);
    flex: 1;
}

.match-game-cell {
    width: min(50px, 11vw);
    height: min(50px, 11vw);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #ddd;
}

.match-game-cell:hover {
    transform: scale(1.1);
}

.match-game-info {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
}

.match-game-info span {
    font-weight: bold;
    font-size: 1.2rem;
}

.match-game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.match-game-controls button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0 1rem;
}

.match-game-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 消除动画 */
@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.pop {
    animation: pop 0.3s ease-out forwards;
}

/* 内容标签页样式 */
.content-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card, .picture-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.picture-card img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* 功德点击样式 */
#woodenFish {
    font-size: 5rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: transform 0.1s;
}

#woodenFish:active {
    transform: scale(0.95);
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.merit-text {
    position: absolute;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
}

@media (max-width: 768px) {
    .match-game-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .match-game-controls {
        flex-direction: column;
        align-items: center;
    }

    .match-game-controls button {
        width: 100%;
        max-width: 200px;
        margin: 0.5rem 0;
    }
} 